/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Menu.java
 *
 * Created on 12/05/2011, 03:30:37
 */
package menu;

import Classe.Funcionario;
import Classe.RoundButton;
import Classe.Validacao;
import Tela.CadastroCliente;
import Tela.CadastroClienteJuridico;
import Tela.CadastroFornecedor;
import Tela.CadastroFuncionario;
import Tela.CadastroMarca;
import Tela.CadastroModelo;
import Tela.CadastroNotaFiscal;
import Tela.CadastroOrcamento;
import Tela.CadastroPeca;
import consulta.ConsultaCliente;
import consulta.ConsultaClientePJ;
import consulta.ConsultaEstoque;
import consulta.ConsultaFornecedor;
import consulta.ConsultaFuncionario;
import consulta.ConsultaNotaFiscal;
import consulta.ConsultaOrcamentoClientePJ;
import consulta.ConsultaOrcamentoPF;
import java.awt.Component;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import editar.EditarMarca;
import editar.EditarModelo;
import java.awt.Font;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import javax.swing.JFrame;
import javax.swing.JTextField;
import localizarEditar.LocalizarCliente;
import localizarEditar.LocalizarClienteJuridico;
import localizarEditar.LocalizarFornecedor;
import localizarEditar.LocalizarFuncionario;
import localizarEditar.LocalizarPeca;
import localizarInserir.LocalizarNotaFiscalFornecedorInserir;
import localizarInserir.LocalizarNotaFiscalPFInserir;
import localizarInserir.LocalizarNotaFiscalPJInserir;
import localizarInserir.LocalizarOrcamentoInserir;
import localizarInserir.LocalizarOrcamentoPJInserir;

/**
 *
 * @author gladson
 */
public class Menu extends Validacao {
    
    private Component frameI;

    /** Creates new form Menu */
    public Menu() {
        initComponents();
        Menu.super.setExtendedState(JFrame.MAXIMIZED_BOTH);//Comando para abrir maximizado
        this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        txtCodFun = new javax.swing.JTextField();
        jTextField1 =  new JTextField(8);
        txtNomeLogoin = new javax.swing.JTextField();
        txtData2 = new javax.swing.JTextField();
        jButton1 = new RoundButton("");
        jButton2 = new RoundButton("");
        jButton3 = new RoundButton("");
        jButton4 = new RoundButton("");
        jButton5 = new RoundButton("");
        jButton6 = new RoundButton("");
        jButton7 = new RoundButton("");
        jButton8 = new RoundButton("");
        jButton9 = new RoundButton("");
        jButton10 = new RoundButton("");
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu3 = new javax.swing.JMenu();
        jMenuCliente = new javax.swing.JMenu();
        jMenuItemClientePF = new javax.swing.JMenuItem();
        jMenuItemClientePJ = new javax.swing.JMenuItem();
        jMenuItemFuncionario = new javax.swing.JMenuItem();
        jMenuItemFornecedor = new javax.swing.JMenuItem();
        jMenuItemPeca = new javax.swing.JMenuItem();
        jMenuItemMarca = new javax.swing.JMenuItem();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        jMenuCliente1 = new javax.swing.JMenu();
        jMenuItemClientePF1 = new javax.swing.JMenuItem();
        jMenuItemClientePJ1 = new javax.swing.JMenuItem();
        jMenuItemFuncionario1 = new javax.swing.JMenuItem();
        jMenuItemFornecedor1 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenu15 = new javax.swing.JMenu();
        jMenuItem16 = new javax.swing.JMenuItem();
        jMenuItem17 = new javax.swing.JMenuItem();
        jMenuNotaFiscal = new javax.swing.JMenu();
        jMenuItemNFEntreda = new javax.swing.JMenuItem();
        jMenuItem15 = new javax.swing.JMenuItem();
        jMenuItem14 = new javax.swing.JMenuItem();
        jMenu10 = new javax.swing.JMenu();
        jMenuItem10 = new javax.swing.JMenuItem();
        jMenu5 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenu9 = new javax.swing.JMenu();
        jMenuCliente2 = new javax.swing.JMenu();
        jMenuItemClientePF2 = new javax.swing.JMenuItem();
        jMenuItemClientePJ2 = new javax.swing.JMenuItem();
        jMenuItemFuncionario2 = new javax.swing.JMenuItem();
        jMenuItemFornecedor2 = new javax.swing.JMenuItem();
        jMenu14 = new javax.swing.JMenu();
        jMenuItem19 = new javax.swing.JMenuItem();
        jMenuItem20 = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 36));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/mechanics2_l.png"))); // NOI18N
        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        jPanel3.setBackground(new java.awt.Color(255, 153, 153));
        jPanel3.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));

        txtCodFun.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));

        SimpleDateFormat hora = new SimpleDateFormat("HH:mm:aa");
        jTextField1.setText(hora.format(Calendar.getInstance().getTime()));
        jTextField1.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));

        txtNomeLogoin.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));

        txtData2.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createEtchedBorder(), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(txtData2, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(txtCodFun, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(txtNomeLogoin, javax.swing.GroupLayout.DEFAULT_SIZE, 520, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCodFun, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtData2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtNomeLogoin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jButton1.setBackground(new java.awt.Color(217, 233, 237));
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/503_64x64.png"))); // NOI18N
        jButton1.setToolTipText("Incluir Funcionário");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setBackground(new java.awt.Color(217, 233, 237));
        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/Edit.png"))); // NOI18N
        jButton2.setToolTipText("Editar Funcionário");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton3.setBackground(new java.awt.Color(217, 233, 237));
        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/NFeInBox copy.png"))); // NOI18N
        jButton3.setToolTipText("Incluir Nota Fiscal");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jButton4.setBackground(new java.awt.Color(217, 233, 237));
        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/NFeInBoxedit copy.png"))); // NOI18N
        jButton4.setToolTipText("Editar Nota Fiscal");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jButton5.setBackground(new java.awt.Color(217, 233, 237));
        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/business_user.png"))); // NOI18N
        jButton5.setToolTipText("Incluir Cliente Jurídico");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jButton6.setBackground(new java.awt.Color(217, 233, 237));
        jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/business_user_edit.png"))); // NOI18N
        jButton6.setToolTipText("Editar Cliente Jurídico");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jButton7.setBackground(new java.awt.Color(217, 233, 237));
        jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/http-__iconesbr.oficinadanet.com_7661_64x64.png"))); // NOI18N
        jButton7.setToolTipText("Editar Orçamento");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        jButton8.setBackground(new java.awt.Color(217, 233, 237));
        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/images copy.png"))); // NOI18N
        jButton8.setToolTipText("Incluir Orçamento");
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        jButton9.setBackground(new java.awt.Color(217, 233, 237));
        jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/user_accept.png"))); // NOI18N
        jButton9.setToolTipText("Incluir Cliente");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        jButton10.setBackground(new java.awt.Color(217, 233, 237));
        jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/user_edit.png"))); // NOI18N
        jButton10.setToolTipText("Editar Cliente");
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        jLabel2.setFont(new java.awt.Font("Arial", 1, 11));
        jLabel2.setText("Cadastro Funcionário");

        jLabel3.setFont(new java.awt.Font("Arial", 1, 11));
        jLabel3.setText("Cadastro Cliente");

        jLabel4.setFont(new java.awt.Font("Arial", 1, 11));
        jLabel4.setText("Cadastro Cliente Jurídico");

        jLabel5.setFont(new java.awt.Font("Arial", 1, 11));
        jLabel5.setText("Orçamento");

        jLabel6.setFont(new java.awt.Font("Arial", 1, 11));
        jLabel6.setText("Nota Fiscal");

        jLabel7.setFont(new java.awt.Font("Arial", 1, 12));
        jLabel7.setText("Editar Funcionário");

        jLabel8.setFont(new java.awt.Font("Arial", 1, 11));
        jLabel8.setText("Editar Cliente");

        jLabel9.setFont(new java.awt.Font("Arial", 1, 11));
        jLabel9.setText("Editar Cliente Jurídico");

        jLabel10.setFont(new java.awt.Font("Arial", 1, 11));
        jLabel10.setText("Editar Orçamento");

        jLabel11.setFont(new java.awt.Font("Arial", 1, 11));
        jLabel11.setText("Editar Nota Fiscal");

        jLabel12.setFont(new java.awt.Font("Magneto", 3, 58));
        jLabel12.setForeground(new java.awt.Color(255, 153, 153));
        jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel12.setText("Oficina Gurgel");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 74, Short.MAX_VALUE)
                        .addGap(57, 57, 57))
                    .addComponent(jButton9, 0, 0, Short.MAX_VALUE)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3)
                    .addComponent(jButton5, 0, 0, Short.MAX_VALUE)
                    .addComponent(jLabel4)
                    .addComponent(jButton8, 0, 0, Short.MAX_VALUE)
                    .addComponent(jLabel5)
                    .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE))
                .addGap(43, 43, 43)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel7)
                    .addComponent(jButton2, 0, 0, Short.MAX_VALUE)
                    .addComponent(jButton10, 0, 0, Short.MAX_VALUE)
                    .addComponent(jLabel8)
                    .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 74, Short.MAX_VALUE)
                    .addComponent(jLabel9)
                    .addComponent(jButton7, 0, 0, Short.MAX_VALUE)
                    .addComponent(jLabel10)
                    .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel11))
                .addContainerGap())
        );

        jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton1, jButton10, jButton2, jButton3, jButton4, jButton5, jButton6, jButton7, jButton8, jButton9});

        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGap(41, 41, 41)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addGap(31, 31, 31)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                    .addGap(18, 18, 18)
                                    .addComponent(jButton3)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel6))
                                .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(jButton1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel2)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButton9)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel3)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButton5)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel4)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButton8)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel5)
                                    .addGap(111, 111, 111)))
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(jButton2)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel7)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButton10)
                                    .addGap(4, 4, 4)
                                    .addComponent(jLabel8)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButton6)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel9)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 129, Short.MAX_VALUE))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 409, Short.MAX_VALUE)
                                    .addComponent(jLabel10)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButton4)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel11)))))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addGap(0, 0, 0)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jMenuBar1.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED), javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));
        jMenuBar1.setPreferredSize(new java.awt.Dimension(70, 35));

        jMenu1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu1.setText("Menu");
        jMenu1.setToolTipText("Menu");
        jMenu1.setFont(new java.awt.Font("Arial", 1, 14));

        jMenu3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu3.setText("Cadastro");

        jMenuCliente.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuCliente.setText("Cliente");

        jMenuItemClientePF.setText("Pessoa Fisica");
        jMenuItemClientePF.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemClientePF.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemClientePFActionPerformed(evt);
            }
        });
        jMenuCliente.add(jMenuItemClientePF);

        jMenuItemClientePJ.setText("Pessoa Juridica");
        jMenuItemClientePJ.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemClientePJ.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemClientePJActionPerformed(evt);
            }
        });
        jMenuCliente.add(jMenuItemClientePJ);

        jMenu3.add(jMenuCliente);

        jMenuItemFuncionario.setText("Funcionario");
        jMenuItemFuncionario.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemFuncionarioActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItemFuncionario);

        jMenuItemFornecedor.setText("Fornecedor");
        jMenuItemFornecedor.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemFornecedorActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItemFornecedor);

        jMenuItemPeca.setText("Peça");
        jMenuItemPeca.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemPeca.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemPecaActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItemPeca);

        jMenuItemMarca.setText("Marca Veiculo");
        jMenuItemMarca.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemMarca.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemMarcaActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItemMarca);

        jMenuItem1.setText("Modelo Veiculo");
        jMenuItem1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItem1);

        jMenu1.add(jMenu3);

        jMenu4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu4.setText("Editar");

        jMenuCliente1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuCliente1.setText("Cliente");

        jMenuItemClientePF1.setText("Pessoa Fisica");
        jMenuItemClientePF1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemClientePF1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemClientePF1ActionPerformed(evt);
            }
        });
        jMenuCliente1.add(jMenuItemClientePF1);

        jMenuItemClientePJ1.setText("Pessoa Juridica");
        jMenuItemClientePJ1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemClientePJ1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemClientePJ1ActionPerformed(evt);
            }
        });
        jMenuCliente1.add(jMenuItemClientePJ1);

        jMenu4.add(jMenuCliente1);

        jMenuItemFuncionario1.setText("Funcionario");
        jMenuItemFuncionario1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemFuncionario1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemFuncionario1ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItemFuncionario1);

        jMenuItemFornecedor1.setText("Fornecedor");
        jMenuItemFornecedor1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemFornecedor1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemFornecedor1ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItemFornecedor1);

        jMenuItem3.setText("Marca");
        jMenuItem3.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem3);

        jMenuItem4.setText("Modelo");
        jMenuItem4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem4);

        jMenuItem5.setText("Peça");
        jMenuItem5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem5ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem5);

        jMenu15.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu15.setText("Orcamento");

        jMenuItem16.setText("Pessoa Fisica");
        jMenuItem16.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem16ActionPerformed(evt);
            }
        });
        jMenu15.add(jMenuItem16);

        jMenuItem17.setText("Pessoa Juridica");
        jMenuItem17.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem17ActionPerformed(evt);
            }
        });
        jMenu15.add(jMenuItem17);

        jMenu4.add(jMenu15);

        jMenuNotaFiscal.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuNotaFiscal.setText("Nota Fiscal");

        jMenuItemNFEntreda.setText("Pessoa Fisica");
        jMenuItemNFEntreda.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemNFEntreda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemNFEntredaActionPerformed(evt);
            }
        });
        jMenuNotaFiscal.add(jMenuItemNFEntreda);

        jMenuItem15.setText("Pessoa Juridica");
        jMenuItem15.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem15ActionPerformed(evt);
            }
        });
        jMenuNotaFiscal.add(jMenuItem15);

        jMenuItem14.setText("Fornecedor");
        jMenuItem14.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem14ActionPerformed(evt);
            }
        });
        jMenuNotaFiscal.add(jMenuItem14);

        jMenu4.add(jMenuNotaFiscal);

        jMenu1.add(jMenu4);

        jMenu10.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu10.setText("Orçamento");

        jMenuItem10.setText("Emitir Orçamento");
        jMenuItem10.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem10ActionPerformed(evt);
            }
        });
        jMenu10.add(jMenuItem10);

        jMenu1.add(jMenu10);

        jMenu5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu5.setText("Fiscal");

        jMenuItem2.setText("Emitir Nota Fiscal");
        jMenuItem2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu5.add(jMenuItem2);

        jMenu1.add(jMenu5);

        jMenu9.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu9.setText("Consulta");

        jMenuCliente2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuCliente2.setText("Cliente");

        jMenuItemClientePF2.setText("Pessoa Fisica");
        jMenuItemClientePF2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemClientePF2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemClientePF2ActionPerformed(evt);
            }
        });
        jMenuCliente2.add(jMenuItemClientePF2);

        jMenuItemClientePJ2.setText("Pessoa Juridica");
        jMenuItemClientePJ2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemClientePJ2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemClientePJ2ActionPerformed(evt);
            }
        });
        jMenuCliente2.add(jMenuItemClientePJ2);

        jMenu9.add(jMenuCliente2);

        jMenuItemFuncionario2.setText("Funcionario");
        jMenuItemFuncionario2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemFuncionario2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemFuncionario2ActionPerformed(evt);
            }
        });
        jMenu9.add(jMenuItemFuncionario2);

        jMenuItemFornecedor2.setText("Fornecedor");
        jMenuItemFornecedor2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItemFornecedor2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemFornecedor2ActionPerformed(evt);
            }
        });
        jMenu9.add(jMenuItemFornecedor2);

        jMenu14.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu14.setText("Orcamento");

        jMenuItem19.setText("Pessoa Fisica");
        jMenuItem19.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem19.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem19ActionPerformed(evt);
            }
        });
        jMenu14.add(jMenuItem19);

        jMenuItem20.setText("Pessoa Juridica");
        jMenuItem20.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem20ActionPerformed(evt);
            }
        });
        jMenu14.add(jMenuItem20);

        jMenu9.add(jMenu14);

        jMenuItem6.setText("Nota Fiscal");
        jMenuItem6.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem6ActionPerformed(evt);
            }
        });
        jMenu9.add(jMenuItem6);

        jMenuItem7.setText("Estoque");
        jMenuItem7.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed(evt);
            }
        });
        jMenu9.add(jMenuItem7);

        jMenu1.add(jMenu9);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Sair");
        jMenu2.setToolTipText("Sair");
        jMenu2.setFont(new java.awt.Font("Arial", 1, 14));
        jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenu2MouseClicked(evt);
            }
        });
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuItemClientePFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClientePFActionPerformed
        
        try {
            CadastroCliente cliente = new CadastroCliente();
            cliente.setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
        
}//GEN-LAST:event_jMenuItemClientePFActionPerformed
    
    private void jMenuItemClientePJActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClientePJActionPerformed
        CadastroClienteJuridico clientePJ = new CadastroClienteJuridico();
        clientePJ.setVisible(true);
        // TODO add your handling code here:
}//GEN-LAST:event_jMenuItemClientePJActionPerformed
    
    private void jMenuItemFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFuncionarioActionPerformed
        CadastroFuncionario funcionario = new CadastroFuncionario();
        funcionario.setVisible(true);
}//GEN-LAST:event_jMenuItemFuncionarioActionPerformed
    
    private void jMenuItemFornecedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFornecedorActionPerformed
        CadastroFornecedor fornecedor = new CadastroFornecedor();
        fornecedor.setVisible(true);
}//GEN-LAST:event_jMenuItemFornecedorActionPerformed
    
    private void jMenuItemPecaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemPecaActionPerformed
        CadastroPeca peca = new CadastroPeca();
        peca.setVisible(true);
}//GEN-LAST:event_jMenuItemPecaActionPerformed
    
    private void jMenuItemMarcaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemMarcaActionPerformed
        CadastroMarca marca = new CadastroMarca();
        marca.setVisible(true);
}//GEN-LAST:event_jMenuItemMarcaActionPerformed
    
    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        CadastroModelo modelo = new CadastroModelo();
        modelo.setVisible(true);
}//GEN-LAST:event_jMenuItem1ActionPerformed
    
    private void jMenuItemClientePF1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClientePF1ActionPerformed
        LocalizarCliente localizarCliente = new LocalizarCliente();
        localizarCliente.setVisible(true);
}//GEN-LAST:event_jMenuItemClientePF1ActionPerformed
    
    private void jMenuItemClientePJ1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClientePJ1ActionPerformed
        LocalizarClienteJuridico clipj = new LocalizarClienteJuridico();
        clipj.setVisible(true);
}//GEN-LAST:event_jMenuItemClientePJ1ActionPerformed
    
    private void jMenuItemFuncionario1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFuncionario1ActionPerformed
        LocalizarFuncionario locFun = new LocalizarFuncionario();
        locFun.setVisible(true);
}//GEN-LAST:event_jMenuItemFuncionario1ActionPerformed
    
    private void jMenuItemFornecedor1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFornecedor1ActionPerformed
        LocalizarFornecedor locForn = new LocalizarFornecedor();
        locForn.setVisible(true);
}//GEN-LAST:event_jMenuItemFornecedor1ActionPerformed
    
    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        EditarMarca edmarca = new EditarMarca();
        edmarca.setVisible(true);
}//GEN-LAST:event_jMenuItem3ActionPerformed
    
    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
        EditarModelo edmod = new EditarModelo();
        edmod.setVisible(true);
}//GEN-LAST:event_jMenuItem4ActionPerformed
    
    private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed
        LocalizarPeca locpeca = new LocalizarPeca();
        locpeca.setVisible(true);
}//GEN-LAST:event_jMenuItem5ActionPerformed
    
    private void jMenu2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu2MouseClicked
        System.exit(0);
    }//GEN-LAST:event_jMenu2MouseClicked
    
    private void jMenuItem16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem16ActionPerformed
        LocalizarOrcamentoInserir locOrc = new LocalizarOrcamentoInserir();
        locOrc.setVisible(true);
    }//GEN-LAST:event_jMenuItem16ActionPerformed
    
    private void jMenuItem17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem17ActionPerformed
        LocalizarOrcamentoPJInserir locpj = new LocalizarOrcamentoPJInserir();
        locpj.setVisible(true);
    }//GEN-LAST:event_jMenuItem17ActionPerformed
    
    private void jMenuItemNFEntredaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemNFEntredaActionPerformed
        LocalizarNotaFiscalPFInserir locEditNF = new LocalizarNotaFiscalPFInserir();
        locEditNF.setVisible(true);
    }//GEN-LAST:event_jMenuItemNFEntredaActionPerformed
    
    private void jMenuItem15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem15ActionPerformed
        LocalizarNotaFiscalPJInserir locEditNFPJ = new LocalizarNotaFiscalPJInserir();
        locEditNFPJ.setVisible(true);
    }//GEN-LAST:event_jMenuItem15ActionPerformed
    
    private void jMenuItem14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem14ActionPerformed
        LocalizarNotaFiscalFornecedorInserir locEditNFaf = new LocalizarNotaFiscalFornecedorInserir();
        locEditNFaf.setVisible(true);
    }//GEN-LAST:event_jMenuItem14ActionPerformed
    
    private void jMenuItemClientePF2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClientePF2ActionPerformed
        ConsultaCliente cs = new ConsultaCliente();
        cs.setVisible(true);
    }//GEN-LAST:event_jMenuItemClientePF2ActionPerformed
    
    private void jMenuItemClientePJ2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClientePJ2ActionPerformed
        ConsultaClientePJ cj = new ConsultaClientePJ();
        cj.setVisible(true);
    }//GEN-LAST:event_jMenuItemClientePJ2ActionPerformed
    
    private void jMenuItemFuncionario2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFuncionario2ActionPerformed
        ConsultaFuncionario cf = new ConsultaFuncionario();
        cf.setVisible(true);
    }//GEN-LAST:event_jMenuItemFuncionario2ActionPerformed
    
    private void jMenuItemFornecedor2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemFornecedor2ActionPerformed
        ConsultaFornecedor csf = new ConsultaFornecedor();
        csf.setVisible(true);
    }//GEN-LAST:event_jMenuItemFornecedor2ActionPerformed
    
    private void jMenuItem19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem19ActionPerformed
        ConsultaOrcamentoPF copf = new ConsultaOrcamentoPF();
        copf.setVisible(true);
    }//GEN-LAST:event_jMenuItem19ActionPerformed
    
    private void jMenuItem20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem20ActionPerformed
        ConsultaOrcamentoClientePJ cospj = new ConsultaOrcamentoClientePJ();
        cospj.setVisible(true);
    }//GEN-LAST:event_jMenuItem20ActionPerformed
    
    private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed
        ConsultaNotaFiscal csnt = new ConsultaNotaFiscal();
        csnt.setVisible(true);
    }//GEN-LAST:event_jMenuItem6ActionPerformed
    
    private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed
        ConsultaEstoque csest = new ConsultaEstoque();
        csest.setVisible(true);
    }//GEN-LAST:event_jMenuItem7ActionPerformed
    
    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        CadastroNotaFiscal nota = new CadastroNotaFiscal();
        nota.setVisible(true);
    }//GEN-LAST:event_jMenuItem2ActionPerformed
    
    private void jMenuItem10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem10ActionPerformed
        CadastroOrcamento cadsorc = new CadastroOrcamento();
        cadsorc.setVisible(true);
    }//GEN-LAST:event_jMenuItem10ActionPerformed
    
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        CadastroFuncionario func = new CadastroFuncionario();
        func.setVisible(true);
    }//GEN-LAST:event_jButton1ActionPerformed
    
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        LocalizarFuncionario locFun1 = new LocalizarFuncionario();
        locFun1.setVisible(true);
    }//GEN-LAST:event_jButton2ActionPerformed
    
    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        CadastroNotaFiscal nf = new CadastroNotaFiscal();
        nf.setVisible(true);
    }//GEN-LAST:event_jButton3ActionPerformed
    
    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        CadastroClienteJuridico clipj = new CadastroClienteJuridico();
        clipj.setVisible(true);
        
    }//GEN-LAST:event_jButton5ActionPerformed
    
    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        LocalizarClienteJuridico clipj1 = new LocalizarClienteJuridico();
        clipj1.setVisible(true);
    }//GEN-LAST:event_jButton6ActionPerformed
    
    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        CadastroOrcamento cadsorc = new CadastroOrcamento();
        cadsorc.setVisible(true);
    }//GEN-LAST:event_jButton8ActionPerformed
    
    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        try {
            CadastroCliente cli = new CadastroCliente();
            cli.setVisible(true);
        } catch (SQLException ex) {
            Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton9ActionPerformed
    
    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        LocalizarCliente localizarCliente1 = new LocalizarCliente();
        localizarCliente1.setVisible(true);
    }//GEN-LAST:event_jButton10ActionPerformed
    
    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        MenuOrcamento meor = new MenuOrcamento();
        meor.setVisible(true);
    }//GEN-LAST:event_jButton7ActionPerformed
    
    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        MenuNotaFiscal mnot = new MenuNotaFiscal();
        mnot.setVisible(true);
    }//GEN-LAST:event_jButton4ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            
            public void run() {
                new Menu().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu10;
    private javax.swing.JMenu jMenu14;
    private javax.swing.JMenu jMenu15;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu9;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu jMenuCliente;
    private javax.swing.JMenu jMenuCliente1;
    private javax.swing.JMenu jMenuCliente2;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem14;
    private javax.swing.JMenuItem jMenuItem15;
    private javax.swing.JMenuItem jMenuItem16;
    private javax.swing.JMenuItem jMenuItem17;
    private javax.swing.JMenuItem jMenuItem19;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem20;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItemClientePF;
    private javax.swing.JMenuItem jMenuItemClientePF1;
    private javax.swing.JMenuItem jMenuItemClientePF2;
    private javax.swing.JMenuItem jMenuItemClientePJ;
    private javax.swing.JMenuItem jMenuItemClientePJ1;
    private javax.swing.JMenuItem jMenuItemClientePJ2;
    private javax.swing.JMenuItem jMenuItemFornecedor;
    private javax.swing.JMenuItem jMenuItemFornecedor1;
    private javax.swing.JMenuItem jMenuItemFornecedor2;
    private javax.swing.JMenuItem jMenuItemFuncionario;
    private javax.swing.JMenuItem jMenuItemFuncionario1;
    private javax.swing.JMenuItem jMenuItemFuncionario2;
    private javax.swing.JMenuItem jMenuItemMarca;
    private javax.swing.JMenuItem jMenuItemNFEntreda;
    private javax.swing.JMenuItem jMenuItemPeca;
    private javax.swing.JMenu jMenuNotaFiscal;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField txtCodFun;
    private javax.swing.JTextField txtData2;
    private javax.swing.JTextField txtNomeLogoin;
    // End of variables declaration//GEN-END:variables

    public void inicio(Funcionario fun) {
        Date data = new Date(System.currentTimeMillis());
        SimpleDateFormat formatarDate = new SimpleDateFormat("dd/MM/yyyy");
        txtData2.setText(formatarDate.format(data));
        txtData2.setEnabled(false);
        txtData2.setFont(new Font(null, Font.BOLD, 15));
        jTextField1.setEnabled(false);
        jTextField1.setFont(new Font(null, Font.BOLD, 15));
        txtCodFun.setText("" + fun.getIdFuncionario());
        txtCodFun.setEnabled(false);
        txtCodFun.setFont(new Font(null, Font.BOLD, 15));
        txtNomeLogoin.setText(fun.getNomePessoa());
        txtNomeLogoin.setFont(new Font(null, Font.BOLD, 15));
        txtNomeLogoin.setEnabled(false);
    }
}
